{template "content","header"}
<div class="main">
	<div class="crumbs"><a href="{siteurl($siteid)}">首页</a><span> > </span>{catpos($catid)} 视频</div>
	{if $sub_pic}
	<div class="v_pic">
		<a href="{$sub_url}" target="_blank"><img src="{$sub_pic}" title="{$title}" alt="{$title}" width="930" height="300" /></a>
		<div class="btnplay">
			<a href="{$sub_url}" target="_blank"><em>播放</em></a>
		</div>
	</div>
	{/if}
	{if $sub_flash}
	<div class="v_flash">
		<embed type="application/x-shockwave-flash" src="{$sub_flash}" 
			d="movie_player" name="movie_player" bgcolor="#000000" quality="high"
			allowfullscreen="true" flashvars="isShowRelatedVideo=false&showAd=0&show_pre=1&show_next=1&isAutoPlay=true&isDebug=false&UserID=&winType=interior&playMovie=true&MMControl=false&MMout=false&RecordCode=1001,1002,1003,1004,1005,1006,2001,3001,3002,3003,3004,3005,3007,3008,9999"
			pluginspage="http://www.macromedia.com/go/getflashplayer"
			width="100%" height="100%"></embed>
	</div>
	{/if}
	<div class="col-left">
        <div id="Article">
        	<h1>{$sub_title}<br />
<span>{$inputtime}&nbsp;&nbsp;&nbsp;来源：{$copyfrom}&nbsp;&nbsp;&nbsp;评论：<a href="#comment_iframe" id="comment">0</a> 点击：</span><span id="hits"></span></h1>
			{if $sub_description}<div class="summary" >{$sub_description}</div>{/if}
			<div class="content">
			{if $tv_images}
				{$tv_images}
				<div class="clear"></div>
			{/if}
			{if $allow_visitor==1}
				{$content}
				<!--内容关联投票-->
				{if $voteid}<script language="javascript" src="{APP_PATH}index.php?m=vote&c=index&a=show&action=js&subjectid={$voteid}&type=2"></script>{/if}
                
			{else}
				<CENTER><a href="{APP_PATH}index.php?m=content&c=readpoint&allow_visitor={$allow_visitor}"><font color="red">阅读此信息需要您支付 <B><I>{$readpoint} {if $paytype}元{else}点{/if}</I></B>，点击这里支付</font></a></CENTER>
			{/if}
			</div>
			<div id="pages" class="text-c">{$pages}</div>
            <p style="margin-bottom:10px">
            <strong>相关热词搜索：</strong>{loop $keywords $keyword}<a target="_blank" href="{APP_PATH}index.php?m=content&c=tag&catid={$catid}&tag={urlencode($keyword)}" class="blue">{$keyword}</a> 	{/loop}
            </p>
            <p class="f14">
                <strong>上一部电影：</strong><a href="{$previous_page[url]}">{$previous_page[title]}</a><br />
                <strong>下一部电影：</strong><a href="{$next_page[url]}">{$next_page[title]}</a>
            </p>

          <div class="related"></div>
          <div class="bk15"></div>
            {if module_exists('mood')}<script type="text/javascript" src="{APP_PATH}index.php?m=mood&c=index&a=init&id={id_encode($catid,$id,$siteid)}"></script>{/if}
      </div>
      <div class="Article-Tool">
          分享到：
      <g:plusone size="small"></g:plusone>
		  <img src="http://v.t.qq.com/share/images/s/weiboicon16.png" style="padding-bottom:3px;" onclick="postToWb();" class="cu" title="分享到腾讯微博"/><script type="text/javascript">
	function postToWb(){
		var _t = encodeURI(document.title);
		var _url = encodeURIComponent(document.location);
		var _appkey = encodeURI("cba3558104094dbaa4148d8caa436a0b");
		var _pic = encodeURI('{$thumb}');
		var _site = '';
		var _u = 'http://v.t.qq.com/share/share.php?url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic+'&title='+_t;
		window.open( _u,'', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );
	}
</script>
          <script type="text/javascript">document.write('<a href="http://v.t.sina.com.cn/share/share.php?url='+encodeURIComponent(location.href)+'&appkey=3172366919&title='+encodeURIComponent('{new_addslashes($title)}')+'" title="分享到新浪微博" class="t1" target="_blank">&nbsp;</a>');</script>
		  <script type="text/javascript">document.write('<a href="http://www.douban.com/recommend/?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent('{new_addslashes($title)}')+'" title="分享到豆瓣" class="t2" target="_blank">&nbsp;</a>');</script>
		  <script type="text/javascript">document.write('<a href="http://share.renren.com/share/buttonshare.do?link='+encodeURIComponent(location.href)+'&title='+encodeURIComponent('{new_addslashes($title)}')+'" title="分享到人人" class="t3" target="_blank">&nbsp;</a>');</script>
		  <script type="text/javascript">document.write('<a href="http://www.kaixin001.com/repaste/share.php?rtitle='+encodeURIComponent('{new_addslashes($title)}')+'&rurl='+encodeURIComponent(location.href)+'&rcontent=" title="分享到开心网" class="t4" target="_blank">&nbsp;</a>');</script>
		  <script type="text/javascript">document.write('<a href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+encodeURIComponent(location.href)+'" title="分享到QQ空间" class="t5" target="_blank">&nbsp;</a>');</script>
      
	  <span id='favorite'>
		<a href="javascript:;" onclick="add_favorite('{addslashes($title)}');" class="t6">收藏</a>
	  </span>

	  </div>
      <div class="bk10"></div>
      <div class="adc">{show_ad(1, 20)}</div>
	    <div class="bk10"></div>
      <!--relation tv-->
      <div class="box">
          <h5 class="relation"><span class="rt fn f12 tab SwapTab"><span class="fb">相关电影</span> | <span>同主演电影</span> | <span>同类型电影</span></span></h5>
          <div class="tab-content">
          <ul class="content relation-photo picbig">
          {pc:content action="relation" relation="$relation" id="$id" catid="$catid" num="5" keywords="$rs[keywords]"}
              {if $data}
	              {loop $data $r}
									<li>
										<div class="img-wrap">
		                      <a href="{$r[url]}" title="{$r[title]}" target="_blank"><img src="{thumb($r[thumb],128,96)}" alt="{$r[title]}" title="{$r[title]}" width="128" height="96" /></a>
		                </div>
		                <div class="title"><a href="{$r[url]}" title="{$r[title]}" target="_blank">{$r[title]}</a></div>
		                <div class="rate"><span class="label">评分:</span><em class="rate">{$r[rate]}</em></div>
		                <div class="actor">{$r[actors]}</div>
									</li>
								{/loop}
              {/if}
          {/pc}
          <div class="myclear"></div>
		      </ul>
		      <ul class="content relation-photo picbig hidden">
					{pc:content action="relation_tv_actor" id="$id" catid="$catid" num="5" actor="$actor" order="year DESC,rate DESC"}
						{loop $data $r}
							<li>
								<div class="img-wrap">
                      <a href="{$r[url]}" title="{$r[title]}" target="_blank"><img src="{thumb($r[thumb],128,96)}" alt="{$r[title]}" title="{$r[title]}" width="128" height="96" /></a>
                </div>
                <div class="title"><a href="{$r[url]}" title="{$r[title]}" target="_blank">{$r[title]}</a></div>
		            <div class="rate"><span class="label">评分:</span><em class="rate">{$r[rate]}</em></div>
		            <div class="actor">{$r[actors]}</div>
							</li>
						{/loop}
					{/pc}
					<div class="myclear"></div>
		      </ul>
		      <ul class="content relation-photo picbig hidden">
					{pc:content action="relation_movie_type" id="$id" catid="$catid" num="5" movietype="$movietype" order="rate DESC"}
						{loop $data $r}
							<li>
								<div class="img-wrap">
                      <a href="{$r[url]}" title="{$r[title]}" target="_blank"><img src="{thumb($r[thumb],128,96)}" alt="{$r[title]}" title="{$r[title]}" width="128" height="96" /></a>
                </div>
                <div class="title"><a href="{$r[url]}" title="{$r[title]}" target="_blank">{$r[title]}</a></div>
		            <div class="rate"><span class="label">评分:</span><em class="rate">{$r[rate]}</em></div>
		            <div class="actor">{$r[actors]}</div>
							</li>
						{/loop}
					{/pc}
					<div class="myclear"></div>
		      </ul>			      
          </div>
      </div>
      <!--relation tv end-->
      <div class="bk10"></div>
      {if $allow_comment && module_exists('comment')}
      <iframe src="{APP_PATH}index.php?m=comment&c=index&a=init&commentid={id_encode("content_$catid",$id,$siteid)}&iframe=1" width="100%" height="100%" id="comment_iframe" frameborder="0" scrolling="no"></iframe>
      {/if}
  </div>
    <div class="col-auto">
    	{if $moviepages}{$moviepages}<div class="bk10"></div>{/if}
    	{if $movie_actors}{$movie_actors}<div class="bk10"></div>{/if}
    	{if $movie_info}{$movie_info}<div class="bk10"></div>{/if}
    	<div class="adc">
  	    {show_ad(1, 19)}
      </div>
      <div class="bk10"></div>
      <!-- tv month hits-->
      <div class="box">
          <h5>电影本月播放排行榜</h5>
          <h5 class="title-2"><span class="rt fn f12 tab SwapTab"><span class="fb"><a href="{APP_PATH}html/movie/" title="全部电影本月播放排行" target="_blank">全部</a></span> | <span> <a href="{APP_PATH}html/movie/hy/" title="华语电影本月播放排行" target="_blank">华语电影</a></span> | <span> <a href="{APP_PATH}html/movie/rh/" title="日韩电影本月播放排行" target="_blank">日韩电影</a></span> | <span> <a href="{APP_PATH}html/movie/om/" title="欧美电影本月播放排行" target="_blank">欧美电影</a></span></span></h5>
          <div class="tab-content">
          <ul class="content digg">
					{pc:content action="hits" catid="9" num="10" day="30" order="monthviews DESC"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="hits">{$r[monthviews]}</span>
							</li>
						{/loop}
					{/pc}
		      </ul>
		      <ul class="content digg hidden">
					{pc:content action="hits" catid="10" num="10" day="30" order="monthviews DESC"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="hits">{$r[monthviews]}</span>
							</li>
						{/loop}
					{/pc}
		      </ul>
		      <ul class="content digg hidden">
					{pc:content action="hits" catid="12" num="10" day="30" order="monthviews DESC"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="hits">{$r[monthviews]}</span>
							</li>
						{/loop}
					{/pc}
		      </ul>
		      <ul class="content digg hidden">
					{pc:content action="hits" catid="11" num="10" day="30" order="monthviews DESC"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="hits">{$r[monthviews]}</span>
							</li>
						{/loop}
					{/pc}
		      </ul>			      
          </div>
      </div>
      <!-- tv month hits end-->
      <div class="bk10"></div>
      <!-- tv month rate-->
      <div class="box">
          <h5>2011年电影评分排行榜</h5>
          <h5 class="title-2"><span class="rt fn f12 tab SwapTab"><span class="fb"><a href="{APP_PATH}html/movie/" title="2011年电影评分排行" target="_blank">全部</a></span> | <span> <a href="{APP_PATH}html/movie/hy/" title="2011年华语电影评分排行" target="_blank">华语电影</a></span> | <span> <a href="{APP_PATH}html/movie/rh/" title="2011年日韩电影评分排行" target="_blank">日韩电影</a></span> | <span> <a href="{APP_PATH}html/movie/om/" title="2011年欧美电影评分排行" target="_blank">欧美电影</a></span></span></h5>
          <div class="tab-content">
          <ul class="content digg">
					{pc:content action="lists" catid="9" num="10" where="status=99 AND catid IN (9,10,11,12) AND year=2011" order="rate DESC"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="rate">{$r[rate]}分</span>
							</li>
						{/loop}
					{/pc}
		      </ul>
		      <ul class="content digg hidden">
					{pc:content action="lists" catid="10" num="10" where="status=99 AND catid=10 AND year=2011" order="rate DESC"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="rate">{$r[rate]}分</span>
							</li>
						{/loop}
					{/pc}
		      </ul>
		      <ul class="content digg hidden">
					{pc:content action="lists" catid="12" num="10" where="status=99 AND catid=12 AND year=2011" order="rate DESC"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="rate">{$r[rate]}分</span>
							</li>
						{/loop}
					{/pc}
		      </ul>
		      <ul class="content digg hidden">
					{pc:content action="lists" catid="11" num="10" where="status=99 AND catid=11 AND year=2011" order="rate DESC"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="rate">{$r[rate]}分</span>
							</li>
						{/loop}
					{/pc}
		      </ul>			      
          </div>
      </div>
      <!-- tv month rate end-->
      <div class="bk10"></div>
      <!-- tv comment-->
      <div class="box">
          <h5>电影评论排行榜</h5>
          <h5 class="title-2"><span class="rt fn f12 tab SwapTab"><span class="fb"><a href="{APP_PATH}html/movie/" title="电影评论排行" target="_blank">全部</a></span> | <span> <a href="{APP_PATH}html/movie/hy/" title="华语电影评论排行" target="_blank">华语电影</a></span> | <span> <a href="{APP_PATH}html/movie/rh/" title="日韩电影评论排行" target="_blank">日韩电影</a></span> | <span> <a href="{APP_PATH}html/movie/om/" title="欧美电影评论排行" target="_blank">欧美电影</a></span></span></h5>
          <div class="tab-content">
          <ul class="content digg">
					{pc:comment action="cat_bang" catid="9" num="10" siteid="$siteid"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="r_comment">{$r[total]}</span>
							</li>
						{/loop}
					{/pc}
		      </ul>
		      <ul class="content digg hidden">
					{pc:comment action="cat_bang" catid="10" num="10" siteid="$siteid"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="r_comment">{$r[total]}</span>
							</li>
						{/loop}
					{/pc}
		      </ul>
		      <ul class="content digg hidden">
					{pc:comment action="cat_bang" catid="12" num="10" siteid="$siteid"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="r_comment">{$r[total]}</span>
							</li>
						{/loop}
					{/pc}
		      </ul>
		      <ul class="content digg hidden">
					{pc:comment action="cat_bang" catid="11" num="10" siteid="$siteid"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="r_comment">{$r[total]}</span>
							</li>
						{/loop}
					{/pc}
		      </ul>			      
          </div>
      </div>
      <!-- tv comment end-->
      <div class="bk10"></div>
    </div>
    <div class="bk10"></div>
    <div class="adc">{show_ad(1, 21)}</div> 
</div>
<script type="text/javascript">
<!--
	function show_ajax(obj) {
		var keywords = $(obj).text();
		var offset = $(obj).offset();
		var jsonitem = '';
		$.getJSON("{APP_PATH}index.php?m=content&c=index&a=json_list&type=keyword&modelid={$modelid}&id={$id}&keywords="+encodeURIComponent(keywords),
				function(data){
				var j = 1;
				var string = "<div class='point key-float'><div style='position:relative'><div class='arro'></div>";
				string += "<a href='JavaScript:;' onclick='$(this).parent().parent().remove();' hidefocus='true' class='close'><span>关闭</span></a><div class='contents f12'>";
				if(data!=0) {
				  $.each(data, function(i,item){
					j = i+1;
					jsonitem += "<a href='"+item.url+"' target='_blank'>"+j+"、"+item.title+"</a><BR>";
					
				  });
					string += jsonitem;
				} else {
					string += '没有找到相关的信息！';
				}
					string += "</div><span class='o1'></span><span class='o2'></span><span class='o3'></span><span class='o4'></span></div></div>";		
					$(obj).after(string);
					$('.key-float').mouseover(
						function (){
							$(this).siblings().css({"z-index":0})
							$(this).css({"z-index":1001});
						}
					)
					$(obj).next().css({ "left": +offset.left-100, "top": +offset.top+$(obj).height()+12});
				});
	}

	function add_favorite(title) {
		$.getJSON('{APP_PATH}api.php?op=add_favorite&title='+encodeURIComponent(title)+'&url='+encodeURIComponent(location.href)+'&'+Math.random()+'&callback=?', function(data){
			if(data.status==1)	{
				$("#favorite").html('收藏成功');
			} else {
				alert('请登录');
			}
		});
	}

$(function(){
  //$('#Article .content img').LoadImage(true, 660, 660,'{IMG_PATH}s_nopic.gif');
  new SwapTab(".SwapTab2","span",".items","div","fb");//排行TAB
  new SwapTab(".SwapTab","span",".tab-content","ul","fb");//排行TAB  
})
//-->
</script>

<script language="JavaScript" src="{APP_PATH}api.php?op=count&id={$id}&modelid={$modelid}"></script>
{template "content","footer"}